package com.jie.algorithm;

import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.jie.algorithm.ui.main.MainFragment;
import com.jie.commonlib.base.BaseActivity;
import com.jie.commonlib.support.arouter.ARouterActivity;

/**
 * @author jie
 */
@Route(path = ARouterActivity.ACTIVITY_ALGORITHM)
public class MainActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.algo_main_activity);
        if (savedInstanceState == null) {
            getSupportFragmentManager().beginTransaction()
                    .replace(R.id.container, MainFragment.newInstance())
                    .commitNow();
        }
    }
}
